package com.hd.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 待办事项
 */
@Entity
@Table(name="work_todo")
@org.hibernate.annotations.Table(appliesTo = "work_todo",comment = "待办事项")
public class Todo implements Serializable {
    @Id
    @Column(name = "id",columnDefinition = "varchar(128)  comment '主键'")
    private String id;
    @Column(name = "title",columnDefinition = "varchar(255) comment '标题'")
    private String title;
    @Column(name = "user_id",columnDefinition = "varchar(128) comment '待办人'")
    private String userId;
    /**
     * 0-待办
     * 1-已办
     */
    @Column(name = "status",columnDefinition = "int default 0 comment '状态'")
    private Integer status;
    @Column(name = "obj_id",columnDefinition = "varchar(255) comment '外键ID'")
    private String objId;
    @Column(name = "type",columnDefinition = "varchar(64) comment '类型KEY'")
    private String type;
    @Column(name = "type_name",columnDefinition = "varchar(64) comment '类型'")
    private String typeName;
    @Column(name = "operator_url",columnDefinition = "varchar(255) comment '操作URL地址'")
    private String operatorURL;
    @Column(name = "create_time",columnDefinition = "datetime comment '创建时间'")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getObjId() {
        return objId;
    }

    public void setObjId(String objId) {
        this.objId = objId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getOperatorURL() {
        return operatorURL;
    }

    public void setOperatorURL(String operatorURL) {
        this.operatorURL = operatorURL;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
